<template>
  <div class="home-box">home
    <a-button type="primary" @click="clearTokens">清空token</a-button>
    <a-button type="primary" @click="getList">发送get请求</a-button>
  </div>
</template>
<script setup lang='ts'>
import { clearToken } from "@/utils/token"
import { articleList } from "@/api/api"

const clearTokens = () => {
  clearToken()
}
const getList = async() => {
  let res = await articleList({ page: 1, per_page: 10 })
  console.log(res)
}
</script>
<style scoped lang="scss">
.home-box{
}
</style>
